#!/bin/bash

rm -f filelist.bash

touch filelist.bash

PROCESSDIR=$1;
SHIPPED="/srv/www/htdocs/zen-cart-v1.3.8a-full-fileset-12112007"

echo "processing: $PROCESSDIR";

OLDIFS=$IFS

IFS="
";

for i in `find $PROCESSDIR -type f | sort`;
do
f=${i#$PROCESSDIR}
md5=`/usr/bin/md5sum $shipped$i`
md5=${md5%% *}
  echo -e "'$f' => '$md5'," >> filelist.bash
done


IFS=$OLDIFS






